// #ifdef APP-NVUE
import nvueMixinfrom from '@/common/mixin/nvueMixin.js';
// #endif
import fuPopup from '@/components/fu-popup/fu-popup.vue'
export default {
	// #ifdef APP-NVUE
	mixins: [nvueMixinfrom],
	// #endif
	components: {
		fuPopup
	},
	props: {
		goodsList: {
			type: [Array],
			default: () => [],
		},
	},
	data() {
		return {
			show: false,
		}
	},
	watch: {
		show(val) {
			if (!val) {
				this.$emit('close')
			}
		}
	},
	created() { },
	methods: {
		handleItem(item) {
			this.$emit('handleItem', item)
		},
		openPopup() {
			this.show = true
		},
		closePopup() {
			this.show = false
		}
	},
}